package jmu.cze.mapper;

import jmu.cze.vo.Person;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;

public interface PersonMapper {
    int add(Person person) throws SQLException;
    int delete(@Param("id") String personID);
    int update(Person person);
    Person findByID(@Param("id") String personID);
    List<Person> findAll(@Param("index") int index, @Param("limit") int limit);
    List<Person> search(@Param("kw") String keyword);
    int countAll();
}
